package com.edu.eduservice.domain.chapter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName ChapterVo
 * @date 2022/9/16 16:19
 * @Version 1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("章节小节")
public class ChapterVo {

    public ChapterVo(String id, String name) {
        this.id = id;
        this.name = name;
    }

    @ApiModelProperty( "编号")
    private String id;

    @ApiModelProperty( "名称")
    private String name;

    @ApiModelProperty( "是否免费")
    private Integer isFree;

    @ApiModelProperty( "视频id")
    private String videoSourcesId;

    public ChapterVo(String id, String name, List<ChapterVo> children) {
        this.id = id;
        this.name = name;
        this.children = children;
    }

    //小节
    @ApiModelProperty(value = "小节")
    private List<ChapterVo> children=new ArrayList<>();

}
